package com.atstudy.headline.web.admin.service;

import com.atstudy.headline.entity.AdCampaigns;
import com.atstudy.headline.entity.AdPerformanceDaily;
import com.atstudy.headline.web.admin.vo.ad.AdCampaignsVo;
import com.atstudy.headline.web.admin.vo.ad.AdPerDailyVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
* @author A
* @description 针对表【ad_campaigns(广告计划表)】的数据库操作Service
* @createDate 2025-06-12 13:55:56
*/
public interface AdCampaignsService extends IService<AdCampaigns> {
    /**
     * 分页查询
     * @param page
     * @param queryVo
     * @return
     */
    IPage<AdCampaigns> pageInfoByAdCampaigns(IPage<AdCampaigns> page, AdCampaignsVo queryVo);

    /**
     * 查询广告计划id和广告计划名称
     * @return
     */
    List<Map<Integer, Object>> selectCampaigns();


    /**
     * 根据广告主id查询广告计划列表id
     * @param advertiserId
     * @return
     */
    List<Integer> findCampaignIdsByAdvertiser(Integer advertiserId);

    /**
     * 根据广告主id删除广告计划
     * @param advertiserId
     */
    void deleteByAdvertiserId(Integer advertiserId);
}
